package yuejian_07.yuejian_07.service;

import java.util.List;

import retrofit2.http.Query;
import retrofit2.Call;
import retrofit2.http.GET;
import yuejian_07.yuejian_07.javabean.Activities;
import yuejian_07.yuejian_07.javabean.ActivityOrder;


public interface ActivityService {
    @GET("Activity/getActivity")
    Call<List<Activities>> getAllActivities();

    @GET("Activity/activitydetail")
    Call<Activities> getActivityById(
            @Query("activity_id") int acitivity_id
    );
    @GET("Activity/searchActivity")
    Call<List<Activities>> getActBySearch(
            @Query("search") String search
    );
    //报名活动
    @GET("Activity/addactivityn")
    Call<ActivityOrder> insertOrder(
            @Query("user_id") int user_id,
            @Query("activity_id") int activity_id
    );
}
